added function to db-interface: ssa_db_get_longest_sequence