What is the most stable linux distribution to use on beaglebone? Inputs and serial communication.

Hello everyone!

I want to make a project in linux. The project consists of acquiring information through serial communication and using a router to send the data to the Internet. The data must be stored in a database. What version of linux is the best to perform this task. I will also use some inputs and outputs.