Get data from SQL implemented