Database text based Qt